The TextField Component > FTextField.showIcon() |
FTextField.showIcon()
Availability
Flash Player 6.
Usage
myTextField_txf.showIcon (show)
Parameters
show A Boolean value indicating whether an icon
should be displayed within the component.
Returns
Nothing.
Description
This method allows the display of an icon within the component. The icon will appear in the top let corner of the component.
The icon that appears can be specified using the setIcon method.
Example
The text_validation.fla example file contains an example of using this method.
The following code assigns an icon to the textfield and then shows it.
myTextField_txf.setIcon("ftf_errorIcon");
myTextField_txf.showIcon(true);
See also